﻿using Microsoft.VisualStudio.DebuggerVisualizers;

namespace FR.CodeVisualizer.ObjectSource
{
    public class CollectionVisualizerObjectSource : VisualizerObjectSource
    {
        public override void GetData(object target, System.IO.Stream outgoingData)
        {
            StreamSerializer.ObjectToStream(outgoingData, target.DumpMe());
        }
    }
}
